package lr.com.demo.service;

import org.springframework.data.redis.connection.Message;
import org.springframework.data.redis.connection.MessageListener;

public class MessageListenerService implements MessageListener{

	@Override
	public void onMessage(Message message, byte[] pattern) {
		if (message == null) {
            System.out.println("null");
        } 
        else{
            System.out.println(message.toString());
        }
	}

}
